$(function () {
    $('#time_type').change(function () {
        var time_type = $(this).children('option:selected').val();
        var url = $('.points_tab').data('url');
        var status = $('.points_tab').data('status');
        var whole_url = url + "?type=" + status + '&time=' + time_type;
        location.href = whole_url;
    })
})